<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" xml:lang="en" lang="en">
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
    <meta content="en-us" http-equiv="Content-Language" />
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
    <meta content="" name="description" />
    <meta content="" name="keywords" />
    <title>Asian Startup News</title>
    <link rel="stylesheet" type="text/css"  media="screen, projection" href="/static/css/stylesheet.css" />
    <!--[if IE]>
      <link rel="stylesheet" type="text/css" media="screen, projection" href="/static/css/fuckmsie.css">
    <![endif]-->
    <script type="text/javascript" src="/static/js/jquery-1.4.2.min.js"></script>
  </head>
  <body>
    <div id="menubar">
        <a href="/"><span style="color: #960000">&#9733;</span> Asian Startup News</a> &nbsp; | &nbsp; <a href="/newest">new</a> &nbsp; | &nbsp; <a href="/post">add new</a> &nbsp; | &nbsp; {% if user %}<a href="{{ logout }}">logout &nbsp; {{ user }} &nbsp; {{ usermeta.points }}&#176;</a>{% else %}<a href="{{ login }}">login</a>{% endif %}
    </div>
    <div id="content">
    {% block body %}{% endblock %}
    </div>
    <div id="footer"><a href="http://code.google.com/p/appengine-socialnews/">Source code here.</a> &nbsp; A rough port of <a href="http://news.ycombinator.com">Hacker News</a> to <a href="http://code.google.com/appengine/">Google App Engine</a> by <a href="mailto:mbenjaminsmith[@]gmail[.]com">Matthew</a>.</div>
    <script type="text/javascript">
      $('.vote a').click(function() {
          var me = $(this);
          $.get(me.attr('href'), function(points) {
              if (points) {
                if (/item/.test(window.location)) {
                  me.next('.comment-points').html(points+' points');
                } else {
                  me.closest('tr').next('tr').find('.post-points').html(points+' points');
                }
              }
          });
          return false;
      });
    </script>
  </body>
</html>